﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Von.Web.Apis
{
    public interface TreeInterface<T>
    {
        T ID { get; set; }
        T PID { get; set; }
        int DisplayOrder { get; set; }
    }
    public interface TreeTaskInterface<T>
    {
        List<TreeTaskInterface<T>> LoadChildren(T PID);
    }
    public interface FlowInterface<T>
    {
        T ID { get; set; }
        string Status { get; set; }
    }
    public interface FlowTaskInterface
    {
        Guid FlowID { get; set; }
        string Status { get; set; }
        bool Check<T>(T appID, Guid user, string role);
        bool DoFlowEvent<T>(T appID, string EventName);
    }
}